package main

import "fmt"

//类型断言
func main() {
	var x interface{}
	var b float32 = 1.5
	x = b
	if y, ok := x.(float32); ok {
		fmt.Println("转换成功")
		fmt.Printf("y的类型是%T\n", y)
	} else {
		fmt.Println("转换失败")
	}
	fmt.Println("go on")
}
